package com.fourth.shopping.mapper;


import com.fourth.shopping.dto.UserTableSearch;
import com.fourth.shopping.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> selectAllUser();

    List<User> selectUserByPage(@Param("userTableSearch") UserTableSearch userTableSearch, @Param("beginIndex") Integer beginIndex, @Param("pageSize") Integer pageSize);

    Integer selectNoBysearch(@Param("userTableSearch") UserTableSearch userTableSearch);

    Integer changeStatus(@Param("userId") String userId, @Param("status") Integer status);

}